home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
TCL1
/
CEDITOR_
/
CEDITORP.C
< prev
next >
Wrap
Text File
|
1992-01-12
|
799b
|
38 lines
/****
* CEditorPane.c
*
* Methods for a text editing pane.
*
****/
#include "CEditorPane.h"
#include <Commands.h>
#include <CDocument.h>
#include <CBartender.h>
#include <Constants.h> /* Altered by TCL Demo Weaver 1.0 (2/21/90) */
extern CBartender *gBartender;
void CEditorPane::IEditorPane(CView *anEnclosure, CBureaucrat *aSupervisor)
{
Rect margin;
CEditor::IEditor(anEnclosure, aSupervisor, 1, 1, 0, 0,
sizELASTIC, sizELASTIC, 4 );
FitToEnclosure(TRUE, TRUE);
/**
** Give the edit pane a little margin.
** Each element of the margin rectangle
** specifies by how much to change that
** edge. Positive values are down and to
** right, negative values are up and to
** the left.
**
**/
SetRect(&margin, 4, 4, 0, 0);
ChangeSize(&margin, FALSE);
}